/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.staf.NetworkReportGenerator.V2;

import java.util.Set;

/**
 *
 * @author aezhov
 */
public class LeafDevice implements Node {
    protected String macAddr = null;
    protected String ipAddr = null;
    String vendor = " ";
    String model = " ";
    String name = " ";
    String notice = " ";

    public static LeafDevice getConcreteDevice(String mac) {
        DeviceMacRegistry registry = DeviceMacRegistry.getRegistry();
        DeviceFactory devFactory = registry.getDeviceFactory(mac);

        return devFactory.getConcreteNode(mac);
    }

    public LeafDevice(String macAddr, String ip) {
        this.macAddr = macAddr;
        ipAddr = ip;
    }

    public String getName() { return name; }
    public String getVendor() { return vendor; }
    public String getModel() { return model; }
    public String getMacAddress() { return macAddr; }
    public String getIpAddresses() { return ipAddr; }
    public String getSpecificNotice() { return notice; }

    public void setName(String name) { this.name = name; }
    public void setVendor(String vendor) { this.vendor = vendor; }
    public void setModel(String model) { this.model = model; }
}
